]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
telepathyClient: Promisify the right class
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 22 Oct 2020 19:09:35 +0000 (21:09 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 22 Oct 2020 19:11:01 +0000 (21:11 +0200)
send_message_async() is a method of TpTextChannel, not the generic
TpChannel parent class.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3226

js/ui/components/telepathyClient.js

index b51bedc4c2161ee4a47b4972edfa8d9f13544b5b..0c9514e2b5c02999f739dc802298bda5ac3ad256 100644 (file)
@@ -9,7 +9,7 @@ try {
     ({ TelepathyGLib: Tp, TelepathyLogger: Tpl } = imports.gi);
 
     Gio._promisify(Tp.Channel.prototype, 'close_async', 'close_finish');
-    Gio._promisify(Tp.Channel.prototype,
+    Gio._promisify(Tp.TextChannel.prototype,
         'send_message_async', 'send_message_finish');
     Gio._promisify(Tp.ChannelDispatchOperation.prototype,
         'claim_with_async', 'claim_with_finish');